package com.study.spark.scala.nginx.util

import com.ggstar.util.ip.IpHelper

/**
  * IP转换工具类
  *
  * @author: stephen.shen
  * @create: 2019-03-08 17:57
  */
object IPUtils {

  def getProvince(ip: String): String = {
    IpHelper.findRegionByIp(ip)
  }

  def main(args: Array[String]): Unit = {
    println(getProvince("211.142.128.230"))
  }

}
